]> dgit.raspbian.org Git - ostree.git/commitdiff
ci: Fix cargo build failure on Fedora 43/44 in Containerfile.packit
authorXiaofeng Wang <henrywangxf@me.com>
Mon, 30 Mar 2026 12:22:10 +0000 (20:22 +0800)
committerXiaofeng Wang <henrywangxf@me.com>
Mon, 30 Mar 2026 12:22:10 +0000 (20:22 +0800)
Set CARGO_HOME=/var/tmp/.cargo to avoid conflict with /root/.cargo
which exists as a non-directory on Fedora 43/44 base images, causing
"failed to create directory: File exists (os error 17)".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
hack/Containerfile.packit

index efb3261ffb57c7fb4434438fe212ba020ec746f8..14b0eed2b7c688c2cc877c5ccdbc692ef22c99cb 100644 (file)
@@ -38,9 +38,9 @@ EORUN
 
 COPY tests/bootc-integration /build/tests/bootc-integration
 WORKDIR /build/tests/bootc-integration
-RUN cargo build --release && \
+RUN CARGO_HOME=/var/tmp/.cargo cargo build --release && \
     cp target/release/ostree-bootc-integration-tests /usr/bin/ && \
-    rm -rf /build
+    rm -rf /build /var/tmp/.cargo
 
 WORKDIR /ostree-test